package com.yourbatis.syntax;

import java.util.List;

public class Keywords {
    public static final String IF = "if";
    public static final String ELSE = "else";
    public static final String WHILE = "while";
    public static final String FOR = "for";
    public static final String BREAK = "break";
    public static final String CONTINUE = "continue";
    public static final String RETURN = "return";
    public static final String FUN = "fun";
    public static final String PRINT = "print";
    public static final String NULL = "null";
    public static final String FALSE = "false";
    public static final String TRUE = "true";

    public static List<String> getKeywords() {
        return List.of(IF, ELSE, WHILE, FOR, BREAK, CONTINUE, RETURN, FUN, PRINT, NULL,FALSE, TRUE);
    }

    public static boolean isKeyword(String identifier) {
        List<String> keywords = getKeywords();
        return keywords.contains(identifier);
    }

}
